package com.github.service.impl;

import com.github.service.Command;

/**
 * 具体命令实现
 * @author shuang669539827@163.com
 */
public class ConcreateCommand implements Command {

    private Receiver receiver;


    public ConcreateCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
